<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>

    <style>
      * {
        margin: 0;
        padding: 0;
      }

      div.show {
        width: 400px;
        height: 150px;
        border: 10px solid yellow;
        margin: 30px auto;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        position: relative;
        border-radius: 20%;
      }

      img {
        width: 100px;
        height: 100px;
        display: block;
      }

      .current {
        width: 288px;
        height: 180px;
        position: absolute;
        top: 0;
        left: 0;
        display: none;
      }

      .current > img {
        width: 100%;
        height: 100%;
      }
    </style>
  </head>
  <body>
    <div class="show">
      <img src="1.jpg" alt="" />
      <img src="2.jpg" alt="" />
      <img src="3.jpg" alt="" />
      <div class="current">
        <img src="1.png" alt="" />
      </div>
    </div>

    <script src="./jquery/jquery.min.js"></script>
    <script>
      $(".show > img").hover(
        function () {
          $(".current").fadeIn(200);
        },
        function () {
          $(".current").fadeOut(200);
        }
      );

      $(".show > img").mousemove(function (e) {
        $(".current")
          .css({
            left: e.offsetX + $(this).position().left + 15,
            top: e.offsetY + $(this).position().top + 15,
          })
          .find("img")
          .attr("src", $(this).attr("src"));
      });
    </script>
  </body>
</html>
